package com.zyx.service;

import com.summer.Autowired;
import com.summer.BeanNameAware;
import com.summer.Component;
import com.summer.InitializingBean;

@Component
public class UserService implements BeanNameAware , InitializingBean {

    @Autowired
    private OrderService orderService;
    private String beanName;

    public void test() {
        System.out.println("userService test");
    }

    @Override
    public void setBeanName(String name) {
        this.beanName = name;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("UserService afterPropertiesSet");
    }
}